package com.hairline.service;


import com.hairline.bean.Coupon;
import com.hairline.bean.vo.MyCoupon;
import java.util.List;
import java.util.Map;

public interface WxCouponService{
    Map<String,Object> getAllCoupon(Integer page, Integer size);

    Map<String,Object> getMyCoupon(Integer userId, Integer status, Integer page, Integer size);

    List<MyCoupon> selectMyCoupon(Integer userId);

    Coupon selectCoupon(Integer couponId);

    Integer selectCouponUser(Integer userId, Integer couponId);

    void addUserCoupon(Integer userId, Coupon coupon);

    Coupon getCouponByCode(String code);
}
